package service

import (
	"github.com/go-test/model"
	"github.com/go-test/helper"
)

func GetRoleById(id int) *model.Role {
	role := &model.Role{Id : id}
	has,_ := helper.XormEngine().Id(id).Get(role)
	if has {
		return role
	}
	return nil;
}

